package com.fsy.beanandsql.beantosql.Bean;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import java.io.Serializable;

/**
 * Created by shuangyufeng on 2017/5/5.
 */
@Entity(name = "test_table")
@PrimaryKeyJoinColumn(name = "id")
public class TestBean implements Serializable{

    @Id
    private Integer id;
    private String value;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
